
########### next target ###############

set(filesystemzip_LIB_SRCS
   export.cpp
   filesystemzip.cpp
   filesystemzip.h
   filesystemzip_c.cpp
)

if (Boost_REGEX_FOUND AND ZLIB_FOUND)
  add_library(filesystemzip MODULE ${filesystemzip_LIB_SRCS})

  include_directories(${ZLIB_INCLUDE_DIR})

  target_link_libraries(filesystemzip ${Boost_REGEX_LIBRARY}
    ${spark_libs} ${ZLIB_LIBRARIES})

  if (NOT APPLE)
     set_target_properties(filesystemzip PROPERTIES VERSION 0.0.0 SOVERSION 0)
  endif (NOT APPLE)

  install(TARGETS filesystemzip DESTINATION ${LIBDIR}/${CMAKE_PROJECT_NAME})
endif (Boost_REGEX_FOUND AND ZLIB_FOUND)
